package _22作业.IO流;

import java.io.FileOutputStream;
import java.io.IOException;

public class T3 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("D:\\黑马java培训班\\代码\\itcast\\JavaSE\\day10\\abd\\test.txt",true);
        byte[] bytes = "i love java".getBytes();
        for (int i = 0; i < 5; i++) {
            fos.write("\r\n".getBytes());
            fos.write(bytes);
        }
        fos.close();
    }
}
